package org.hegang.design.first.bridgepattern.demo;

/**
 * @ClassName Demo
 * @Describe:
 * @Author: gang.he
 * @Date: Created in 15:39 2021/4/22
 * @Modified:
 * @Version: V1.0
 */
public class Demo {
    public static void main(String[] args) {
        Brand brand1 = new XiaoMi();
        Brand brand2 = new Huawei();
        Computer computer1 = new Desktop(brand1);
        Computer computer2 = new Notebook(brand2);
        computer1.info();
        computer2.info();
    }
}
